updateOrder

HTTP method: POST

Use the updateOrder to update the order amount, add, remove or update order lines and update order details.


The following diagram describes a typical updateOrder flow using the Merchant API.

Select one of the payment methods that supports update order to see the parameters relevant for that method:

You can update the order multiple times. To do this you should call the updateOrder method with the same payment_id as many times as you want.

If your request comes with partial success response, you can create a new request fixing the parameters in question and send the new request.

The provided order lines in the request will replace the existing order lines of an order.

The amount value should be equal to the total amount of the order lines.

The amount value cannot be smaller or equal to the captured amount.

The following formula describe how the total amount is calculated

Order line net-amount = quantity * unitPrice
Order line tax-amount = taxAmount if the parameter is sent in the request OR taxPercent * net-amount / 100
Order line gross-amount = net-amount + tax-amount
Order line discount-amount = discount * gross-amount / 100
Order line gross-amount-with-discount = gross-amount - discount-amount
Total amount = sum of gross-amount-with-discount of all the order lines